<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // “red”,”green”,”blue”,”pink”,”purple’
       //1.
       function fn(a,c){
      
        var b =a.reverse();
        
        // 2.
       var d=[];
       for(var i=c.length-1;i>=0;i--){
        d.push(c[i])
       }
    //    对象
    //    return {wewe:b,sadsa:d};
    // 数组
    return [b,d];
       
       
       }
      
        
      var e=  fn( ['red','green','blue','pink','purple'],['red','green','blue','pink','purple'])
       console.log(e)



    </script>
</body>
</html>